<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>

<jsFileName><!--js/pageJS/page_attendance.js--></jsFileName>
<s:form id="query_attendance_list_form" name="query_attendance_list_form" method="post" action="attendance/list.do">
<div  class="con_wrap_padding">
	<div class="trans_operate_box clearfix">
		<div class="operate_btns">			
			<a class="btn_short" href="javascript:void(0)" title="新建" onClick="Ext.milan.pagejs.page_attendance.showAddForm();">新 建</a>
		</div>
		<div class="trans_type_search">
			员工编号：<s:textfield key="ygbh" size="10"></s:textfield>
			员工姓名:<s:textfield key="name" size="10"></s:textfield>
			<a class="btn_short" name="button" id="button" href="javascript:void(0)" title="搜索" onclick="QueryPubAttendListUtils.query()">搜索</a>
		</div>   
	</div>
	<table id="dataGridTable_attendance" width="98%" class="dhtmlxGrid" imgpath="skins/default/images/dhtmlx/" lightnavigation="true" style="table-layout:fixed">
		<tr>
			<td align="center">员工编号</td>
			<td align="center">员工姓名</td>
			<td align="center">登记时间</td>
		</tr>
		<c:forEach items="${page.result}" var="item" varStatus="status">
		<tr>
			<td align="left"><span title='${item.username}'>${item.username}</span></td>
			<td align="left"><span title='${item.realname}'>${item.realname}</span></td>
			<td align="left"><span title='${item.regtimeString}'><c:out value='${item.regtimeString}'/></span></td>
			
		</tr>
		</c:forEach>
		
		<c:if test="${fn:length(page.result)==0}">
		<tr>
	    	<td colspan="5"><div class="note_red_in_div">系统没有查找到符合条件的数据！</div></td>
	    </tr>
	    </c:if>
	</table>
	<input type="hidden" name="pageNumber" value="${page.thisPageNumber}"/>
	<input type="hidden" name="pageSize" value="${page.pageSize}"/>
	<simpletable:pagingToolbar page="${page}"/>
 	</div>
</s:form>
<script type="text/javascript">;
	QueryPubAttendListUtils = {};
	
	/**
	 * 条件查询
	 */
	QueryPubAttendListUtils.query = function() {
		
		//强行设置当前页为第一页
		var currentPage = $("query_attendance_list_form").pageNo;
		if(currentPage) 
			currentPage.value = 1;
		
		Ext.milan.pagejs.page_attendance.query();
	};
	
</script>